#include <bits/stdc++.h>

using namespace std;
using ll = long long;

void solve() {
	int a, b;
	cin >> a >> b;
	if (a == 1 && b == 1) {
		cout << "LU" << endl;
	} else if (a == 1 && b == 2) {
		cout << "LD" << endl;
	} else if (a == 2 && b == 1) {
		cout << "RU" << endl;
	} else {
		cout << "RD" << endl;
	}
}

int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	solve();
	return 0;
}